/**
 * @description 权限存储函数
 */
const authorizationKey = 'openid'
const authorizationKey2 = 'iphone'
const authorizationKey3 = 'baimindan'

export function getAuthorization() {
  return uni.getStorageSync(authorizationKey)
}
export function getAuthorizationIphone() {
  return uni.getStorageSync(authorizationKey2)
}
export function getAuthorizationBaimingdan(){
  return uni.getStorageSync(authorizationKey3)
}

export function setAuthorization(authorization) {
  return uni.setStorageSync(authorizationKey, authorization)
}
export function setAuthorizationIphone(authorization) {
  return uni.setStorageSync(authorizationKey2, authorization)
}
export function setAuthorizationBaimingdan(authorization) {
  return uni.setStorageSync(authorizationKey3, authorization)
}

export function removeAuthorization(authorization) {
  return uni.removeStorageSync(authorizationKey)
}
export function removeAuthorizationIphone(authorization) {
  return uni.removeStorageSync(authorizationKey2)
}
export function removeAuthorizationBaimingdan(authorization) {
  return uni.removeStorageSync(authorizationKey3)
}